package com.angel.bo.admin.service;

import com.angel.bo.beans.admin.entity.User;
import com.angel.bo.beans.admin.vo.UserVo;
import com.angel.bo.common.msg.WebReturn;
import com.angel.bo.common.service.BaseService;

/**
 * @Author: Haibo.Mei [Haibo.Mei@ge.com]
 * @Description:
 * @Date: 16:02 2018/1/30 
 */
public interface UserService extends BaseService<User>{

    /**
     * @Author: Haibo.Mei [Haibo.Mei@ge.com]
     * @Description: 根据登录名获取用户信息
     * @Date: 15:55 2018/1/31
     */
    WebReturn<User> getUserInfoByLoginName(String loginName);

    /**
     * @Author: Haibo.Mei [Haibo.Mei@ge.com]
     * @Description:
     * @Date: 16:20 2018/2/2
     */
    WebReturn<User> saveUser(User user);

    /**
     * 获取用户PAGE
     * @param userVo
     * @return
     */
    WebReturn getUserPage(UserVo userVo);

    /**
     * 数据权限加载，项目启动时调用
     */
    void initPermissionData();
}
